\documentclass[tikz,border=2mm]{standalone}
\usepackage{array,amsmath,mathptmx,xcolor,bbding,pifont,colortbl,amssymb}
\usepackage[UTF8]{ctex}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% 只需要这个就可以
\usepackage[thicklines]{cancel}

% 可以设置线条颜色，默认是黑色
\usepackage{xcolor}
\renewcommand{\CancelColor}{\color{red}} 
\usepackage{tikz-cd}
\usepackage{tikz,graphicx,subfig,caption} % Required for drawing custom shapes
\usetikzlibrary{fit,matrix,chains,arrows,shapes,positioning,arrows.meta,chains,shadows,shapes.callouts,decorations.text,shapes.symbols,shapes.misc, positioning,decorations.pathreplacing,calc,backgrounds}
\arrayrulecolor{red}
% 设置浅蓝色
\definecolor{lightblue1}{RGB}{175, 175, 237}
\definecolor{lightgreen1}{RGB}{226, 246, 186}
\definecolor{lightpink}{RGB}{255, 202, 203}
\definecolor{lightblue2}{RGB}{205, 235, 255}
\definecolor{lightyellow1}{RGB}{254, 254, 203}
% 设定删除线颜色
\renewcommand{\CancelColor}{\color{blue}}

\begin{document}
	\begin{tikzpicture}[>=latex,every node/.style={inner sep=0.2em}]
		\node[align=left,rounded corners=0.5em] at (0,0) (point1){\color{blue}\hspace{1em}\SparkleBold 构造下述文法的LR(0)分析表:};
		\node (point2) at ([yshift=-1em]point1.south) {\color{blue}\hspace{-6em} G(Z): };
		\node (p3) at ([xshift=3em]point2.east) {\color{blue}$Z \rightarrow aAb , A \rightarrow cA | d$};
		\node (p4) [align=left] at ([xshift=-1.7em,yshift=-3.4em]point2.west) {\color{blue}(1) 扩展文法: G$'$(Z$'$)  \\
			\color{blue}(2) 构造句柄识别器:    \\
			\color{blue}(3) 构造可归约前缀图:
		};
		\node  (p5) [align=left] at ([xshift=3.7em,yshift=0em]p4.east) {\color{blue}$Z'\rightarrow Z_1(0)$  \\
			\color{blue} $Z\rightarrow a_2A_3b_4(1)$    \\
			\color{blue} $A\rightarrow c_5A_6(2)|d_7(3)$
		};
		
		
		\begin{pgfonlayer}{background}
			\node [draw=black,fill=lightblue2 ,rounded corners=0.5em,rectangle, inner sep=0.1em,line width=0.0025em][fit=(p3)](box1){};
		\end{pgfonlayer}
		\begin{pgfonlayer}{background}
			\node [draw=black,fill=lightyellow1 ,rounded corners=0.5em,rectangle, inner sep=0.1em,line width=0.0025em][fit=(p5)](box1){};
		\end{pgfonlayer}
		% \begin{pgfonlayer}{background}
			%       \node [draw=black,fill=lightblue2 ,rounded corners=0.5em,rectangle, inner sep=0.2em,line width=0.0025em][fit=(point1)](box1){};
			%       \end{pgfonlayer}
		
		
	\end{tikzpicture}
\end{document}